/* 
 * File:   Memento.cpp
 * Author: Gab'z
 * 
 * Created on 25 mai 2012, 17:43
 */

#include "Memento.h"
#include "../command/UndoableRedoableCommand.h"
#include "../Context.h"

namespace calculator {

    Memento::Memento(UndoableRedoableCommand* undoableRedoableCommand) :
    _inputString(Context::getInstance()->getInputString()),
    _undoableRedoableCommand(undoableRedoableCommand) {
    }

    Memento::~Memento() {
        delete _undoableRedoableCommand;
    }
}
